The standard ASP.NET file upload component will often failed when you tried to upload large files, for instance, a 10 mb file. Two of the most common errors are request time out and out of memory error. That happened because the standard file uploading implementation in ASP.NET requires the file to be entirely uploaded before it returns a response to the client side.
![]() |
WebFileUploader takes advantage of HttpModule technology to handle large file upload with a more sophisticated implementation that doesn't perform memory-level buffering. As the result, WebFileUploader can handle large file uploads with very minimal memory and resources consumption. |
By default, ASP.NET application restricts maximum request length to 4MB. To enable your application to accept larger files, please configure the maxRequestLength in web.config to higher value. The maxRequestLength value is measured in kilobytes.
The following configuration sets the application to allow file upload with size up to 100MB.
< configuration >
< system.web >
< httpRuntime maxRequestLength = "102400" />
</ system.web >
</ configuration >
For IIS 7.0, there are additional settings that need to be configured.
- Set maxAllowedContentLength to a higher value, which is measured in bytes
Open your application's web.config file, and add the following.
< system.webServer >
< security >
< requestFiltering >
< requestLimits maxAllowedContentLength = "102400000" /> </requestFiltering >
</ security >
</ system.webServer >
- Unlock the mode override in applicationHost.config
Open IIS 7 application configuration file which is usually located in C:\windows\system32\inetsrv\config, and change the overrideModeDefault to Allow, such as shown in the following.
< section name = "requestFiltering" overrideModeDefault="Allow" />
Other Resources
{IIS 6 and IIS 7 Integrated mode support}
{Webfarm and multiple worker requests support with built-in FileStateServer}
{Rich user experiences}
{Built-in file saving}
{Real-time progress bar}
{Upload}
{Client-side events}
{Server-side events}
{Initial files count}
{Limit upload files by type, count, or custom}
{Limit upload size and total upload size}
